package cn.myschool.pojo;

import cn.myschool.entity.ExamResult;
import cn.myschool.entity.Student;
import cn.myschool.entity.Subject;

import java.sql.Date;

public class ExamResult2 extends ExamResult {
    private Subject subject;
    private Student student;

    public ExamResult2() {
    }

    public ExamResult2(Subject subject, Student student) {
        this.subject = subject;
        this.student = student;
    }

    public Subject getSubject() {
        return subject;
    }

    public void setSubject(Subject subject) {
        this.subject = subject;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    public String toString() {
        return "ExamResult2{" +
                "subject=" + subject.toString() +
                ", student=" + student.toString() +
                super.toString()+'}';
    }
}
